package vn.edu.ute.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="doanvien")
public class DoanVien {
	@Id
	@Column(name="Mssv",nullable=false,length=30)
	private String mssv;
	@Column(name="HoTenDem",nullable=false,length=50)
	private String hoTenDem;
	@Column(name="Ten",nullable=false,length=20)
	private String ten;
	@Column(name="GioiTinh",nullable=false)
	private boolean gioiTinh;
	@Column(name="NgaySinh",nullable=true,length=30)
	private String ngaySinh;
	@Column(name="SoCMND",nullable=true,length=15)
	private String soCMND;
	@Column(name="TonGiao",nullable=true,length=30)
	private String tonGiao;
	@Column(name="TrangThai",nullable=false)
	private int trangThai;
	
	@ManyToOne
	@JoinColumn(name="MaChiDoan")
	private ChiDoan chiDoan;
	
	public ChiDoan getChiDoan() {
		return chiDoan;
	}
	public void setChiDoan(ChiDoan chiDoan) {
		this.chiDoan = chiDoan;
	}
	public int getTrangThai() {
		return trangThai;
	}
	public void setTrangThai(int trangThai) {
		this.trangThai = trangThai;
	}
	public boolean getGioiTinh() {
		return gioiTinh;
	}
	public void setGioiTinh(boolean gioiTinh) {
		this.gioiTinh = gioiTinh;
	}
	public String getMssv() {
		return mssv;
	}
	public void setMssv(String mssv) {
		this.mssv = mssv;
	}
	public String getHoTenDem() {
		return hoTenDem;
	}
	public void setHoTenDem(String hoTenDem) {
		this.hoTenDem = hoTenDem;
	}
	public String getTen() {
		return ten;
	}
	public void setTen(String ten) {
		this.ten = ten;
	}
	public String getNgaySinh() {
		return ngaySinh;
	}
	public void setNgaySinh(String ngaySinh) {
		this.ngaySinh = ngaySinh;
	}
	public String getSoCMND() {
		return soCMND;
	}
	public void setSoCMND(String soCMND) {
		this.soCMND = soCMND;
	}
	public String getTonGiao() {
		return tonGiao;
	}
	public void setTonGiao(String tonGiao) {
		this.tonGiao = tonGiao;
	}
	public String getDanToc() {
		return danToc;
	}
	public void setDanToc(String danToc) {
		this.danToc = danToc;
	}
	public String getDienThoai() {
		return dienThoai;
	}
	public void setDienThoai(String dienThoai) {
		this.dienThoai = dienThoai;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getNgayVaoDoan() {
		return ngayVaoDoan;
	}
	public void setNgayVaoDoan(String ngayVaoDoan) {
		this.ngayVaoDoan = ngayVaoDoan;
	}
	public String getNgayVaoDang() {
		return ngayVaoDang;
	}
	public void setNgayVaoDang(String ngayVaoDang) {
		this.ngayVaoDang = ngayVaoDang;
	}
	public String getSoTheDoan() {
		return soTheDoan;
	}
	public void setSoTheDoan(String soTheDoan) {
		this.soTheDoan = soTheDoan;
	}
	public String getDiaChi() {
		return diaChi;
	}
	public void setDiaChi(String diaChi) {
		this.diaChi = diaChi;
	}
	public String getQueQuan() {
		return queQuan;
	}
	public void setQueQuan(String queQuan) {
		this.queQuan = queQuan;
	}
	public String getChuyenMon() {
		return chuyenMon;
	}
	public void setChuyenMon(String chuyenMon) {
		this.chuyenMon = chuyenMon;
	}
	private String danToc;
	private String dienThoai;
	private String email;
	private String ngayVaoDoan;
	private String ngayVaoDang;
	private String soTheDoan;
	private String diaChi;
	private String queQuan;
	private String chuyenMon;
	public DoanVien() {
		super();
	}
	
	
}
